package com.javasm.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * 陪玩直播大厅分类(PlayRoomCategory)实体类
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class RoomCategory implements Serializable {
    private static final long serialVersionUID = 698974857745214620L;
    /**
     * 大厅类型编号
     */
    private Integer categoryId;
    /**
     * 大厅类型名称
     */
    private String categoryName;
    /**
     * 大厅类型logo 备用
     */
    private String categoryLogo;
    /**
     * 上级分类编号
     */
    private Integer parentId;
    /**
     * 上级分类名称
     */
    private String parentName;

    public RoomCategory(String categoryName, Integer parentId) {
        this.categoryName = categoryName;
        this.parentId = parentId;
    }

    public RoomCategory(Integer categoryId, String categoryName, String categoryLogo, Integer parentId) {
        this.categoryId = categoryId;
        this.categoryName = categoryName;
        this.categoryLogo = categoryLogo;
        this.parentId = parentId;
    }
}

